/*
 * File Name：OptionInfo.java
 * Copyright：Copyright 2008-2015 CiWong.Inc. All Rights Reserved.
 * Description： OptionInfo.java
 * Modify By：bin
 * Modify Date：2015年1月17日
 * Modify Type：Add
 */
package com.ciwong.epaper.modules.epaper.bean;

import com.ciwong.mobilelib.bean.BaseBean;

import java.util.List;

/**
 * 选项信息
 *
 * @author bin
 * @version ciwong v.1.0 2015年1月17日
 * @since ciwong v.1.0
 */
public class OptionInfo extends BaseBean {
//    private static final long serialVersionUID = 3560661013455301397L;


    /**
     * 添加的多余字段
     * 展示是否选中
     */
    private boolean isCheckedAnswer;
    /**
     * 选项版本ID
     */
    private String id;

    /**
     * 是否是正确答案
     */
    private int isAnswer = IsAnswer.IS_ANSWER_ERROR;
    /**
     * 填空题序号
     */
    private String sort;

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    /**
     * 选项结构体
     */
    private List<OptionDetail> value;

    public boolean isCheckedAnswer() {
        return isCheckedAnswer;
    }

    public void setCheckedAnswer(boolean checkedAnswer) {
        isCheckedAnswer = checkedAnswer;
    }


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getIsAnswer() {
        return isAnswer;
    }

    public void setIsAnswer(int isAnswer) {
        this.isAnswer = isAnswer;
    }

    public List<OptionDetail> getValue() {
        return value;
    }

    public void setValue(List<OptionDetail> value) {
        this.value = value;
    }

    /**
     * 是否是答案常量类
     *
     * @author bin
     */
    public static class IsAnswer {
        /**
         * 是否是答案:错误
         */
        public static final int IS_ANSWER_ERROR = 0;

        /**
         * 是否是答案:正确
         */
        public static final int IS_ANSWER_CORRECT = 1;
    }

    /****************** 自定义字段用于上传语音时的tag ********************/

    private String audioUrl;

    private Questions question;

    public String getAudioUrl() {
        return audioUrl;
    }

    public void setAudioUrl(String audioUrl) {
        this.audioUrl = audioUrl;
    }

    public Questions getQuestion() {
        return question;
    }

    public void setQuestion(Questions question) {
        this.question = question;
    }

}
